# Contributor: Roberto Carvajal <roberto@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>

pkgname=mjpegtools
pkgver=2.2.1
pkgrel=1
pkgdesc="Video capture, editing, playback, and compression to MPEG of MJPEG video"
url="https://mjpeg.sourceforge.io/"
arch=(x86_64)
license=(GPL)
depends=(libjpeg libpng gcc-libs libdv)
makedepends=(v4l-utils)
source=(https://downloads.sourceforge.net/project/mjpeg/mjpegtools/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('b180536d7d9960b05e0023a197b00dcb100929a49aab71d19d55f4a1b210f49a')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
